<?php
$view_menu = '<div id="menu"><div id="bglogo"><a href="http://'.$domain.'"><img src="images/logo.png" alt="logo cooking class, cookingclass" /></a></div>
<div id="boxmenu"><div id="menu"><ul id="nav">';
$menu = $tc->menu(0,2);
$i = 0;
while($row = mysql_fetch_array($menu)){ $i++;
	$view_menu .= '<li><a href="'.$row['url'].'"  title="'.$row['title'].'">'.$row['name'].'</a>';
	$view_menu .= $tc->getSubmenu($row['id'],2);
	$view_menu .= '</li>';
}
echo $view_menu.'</ul></div></div></div>';